package com.ss.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ss.bean.TblLoginLog;
import com.ss.bean.TblUserRecord;
import com.ss.mapper.TblLoginLogMapper;
import com.ss.mapper.TblUserRecordMapper;
import com.ss.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Auther: ljy.s
 * @Date: 2022/9/16 - 09 - 16 - 19:43
 */
/*业务层(实现类)*/
@Service
public class LoginServiceImpl /*extends ServiceImpl<TblLoginLogMapper, TblLoginLog>*/ implements LoginService {

    @Resource
    private TblUserRecordMapper tblUserRecordMapper;

    @Override
    public TblUserRecord login(String username, String password) {
        TblUserRecord tblUserRecord = tblUserRecordMapper.login(username, password);
        return tblUserRecord;
    }
}
